﻿using UnityEngine;

namespace Services.StaticData
{
    public class StaticDataService : IStaticDataService
    {
        public HeroStaticData Hero { get; set; }
        public BulletStaticData Bullet { get; set; }
        public LevelStaticData Level { get; set; }
        public HudStaticData Hud { get; set; }
        public UiStaticData Ui { get; set; }
        public GameStaticData Game  { get; set;  }

        public void Load()
        {
            Hero = Resources.Load<HeroStaticData>("StaticData/HeroData");
            Bullet = Resources.Load<BulletStaticData>("StaticData/BulletData");
            Level = Resources.Load<LevelStaticData>("StaticData/LevelData");
            Hud = Resources.Load<HudStaticData>("StaticData/HudData");
            Ui = Resources.Load<UiStaticData>("StaticData/UIData");
            Game   = Resources.Load<GameStaticData>("StaticData/GameData");
        }
    }
}